/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Floors;

import ElementsProperties.Deviable;
import java.util.Vector;

/**
 *
 * @author vf
 */
public abstract class Slope extends Floor{
    protected double gradient=15;

     @Override
    public void update(long dtime) {
        Vector<Object> componentList=myCase.getComponentList();
        for(Object o : componentList)
            if(o instanceof Deviable){
                Deviable o2= (Deviable) o;
                o2.addDy(yDeviation);
                o2.addDx(xDeviation);
            }
    }
}
